// 重置样式
* {
	box-sizing: border-box;
}

html {
	height: 100%;
	font-size: 14px;
}
body {
	height: 100%;
	color: #333;
	min-width: 1240px;
	font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI',
		'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei',
		sans-serif;
}

ul,
h1,
h3,
h4,
p,
dl,
dd {
	padding: 0;
	margin: 0;
}
a {
	text-decoration: none;
	color: #333;
	outline: none;
}
i {
	font-style: normal;
}
input[type='text'],
input[type='search'],
input[type='password'],
input[type='number'],
input[type='checkbox'] {
	padding: 0;
	outline: none;
	border: none;
	-webkit-appearance: none;
	&::placeholder {
		color: #ccc;
	}
}

// input改为number类型，去掉上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
}
input[type='number'] {
	-moz-appearance: textfield;
}
img {
	max-width: 100%;
	max-height: 100%;
	vertical-align: middle;
	//  background: #ebebeb url(../assets/images/200.png) no-repeat center / contain;
}
ul {
	list-style: none;
}
#app {
	background: #f5f5f5;
	// none   无法选中
	user-select: auto;
}

.container {
	width: 1240px;
	margin: 0 auto;
	position: relative;
}
//  文本超过后加上省略号
.ellipsis {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.ellipsis-2 {
	word-break: break-all;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.fl {
	float: left;
}

.fr {
	float: right;
}

.clearfix:after {
	content: '.';
	display: block;
	visibility: hidden;
	height: 0;
	line-height: 0;
	clear: both;
}
// 主页 新鲜好物骨架屏  离开
.fade {
	&-leave {
		&-active {
			position: absolute;
			width: 100%;
			transition: opacity 0.5s 0.2s;
			z-index: 1;
		}
		&-to {
			opacity: 0;
		}
	}
}
// 面包屑 动画
// 旧元素 0-->20px 新元素 20px-->0
.fade-right {
	&-enter-from,
	&-leave-to {
		opacity: 0;
		transform: translateX(20px);
	}
	&-enter-active,
	&-leave-active {
		transition: all 0.5s;
	}
	&-enter-to,
	&-leave-from {
		opacity: 1;
		transform: translateX(0);
	}
}
// 公用的  表单  Form, Field  样式
//  Form, Field -->xtx-form-->xtx-form-item
.xtx-form {
	width: 700px;
	margin: 0 auto;
	padding-left: 190px;
	line-height: 50px;
	&-item {
		display: flex;
		align-items: center;
		margin-bottom: 25px;
		.input {
			position: relative;
			// height: 50px;
			> i {
				position: absolute;
				left: 1px;
				top: 1px;
				width: 49px;
				height: 48px;
				color: #999;
				text-align: center;
				line-height: 48px;
				font-size: 18px;
			}
			// 输入框
			input {
				height: 50px;
				width: 320px;
				padding-left: 50px;
				border: 1px solid #e4e4e4;
				border-radius: 4px;
				&.errors {
					border-color: @priceColor;
				}
				&.active,
				&:focus {
					border-color: @xtxColor;
				}
			}
			// 短信验证码按钮
			.code {
				position: absolute;
				right: 1px;
				top: 1px;
				width: 80px;
				height: 48px;
				text-align: center;
				line-height: 48px;
				font-size: 14px;
				background: #f5f5f5;
				color: #666;
				cursor: pointer;
			}
		}
		//  错误提示
		.error {
			line-height: 28px;
			color: @priceColor;
			i {
				font-size: 16px;
				margin: 0 1px 0 8px;
			}
		}
	}
	.submit {
		display: block;
		width: 320px;
		height: 50px;
		color: #fff;
		font-size: 16px;
		text-align: center;
		background: @xtxColor;
		border-radius: 4px;
		&.disabled {
			background: #cfcdcd;
		}
	}
}
